<!DOCTYPE html>
>>>>>>> b9f4a6f72ab076b6badbf38ebc0d10992f0e3038
<html>
	<head>
		<meta charset="UTF-8">
        <meta name="author" content="order by dede58.com"/>
		<title>会员登录</title>
		<link rel="stylesheet" type="text/css" href="./css/login.css">
<<<<<<< HEAD
		<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
		<script type="text/javascript" src="js/jquery.cookie.js"></script>
		
		<script type="text/javascript">
		$(function(){
		
	        $("#but_1").click(function(){
	          	$("#username_msg").empty();
    			$("#userpassword_msg").empty();
	        var username=$("input[name='userName']").val();
	        var userPassword=$("input[name='userPassword']").val();
	        	$.ajax({       		
	         		type:"POST",
	        		url:"json/user_LoginUser",
	        		data:{"userName":username,"userPassword":userPassword},
	        	    dataType:"JSON",
	        	    success:function(result){
	        	    	var status=result.status	
	        	  
	        	    	if(username==""){
	        	    		$("#username_msg").html("用户名不能为空")
	        	    	}
	        	    	if(userPassword==""){
	        	    		$("#userpassword_msg").html("密码不能为空")
	        	    	}
	        	    	if(status==1){
	        	    		var msg=result.msg
	        	    		$("#username_msg").html(msg)
	        	    	}
	        	    	if(status==2){
	        	    		var msg=result.msg
	        	    		$("#userpassword_msg").html(msg)
	        	    	}
	        	    	if(status==0){
	        	    		var data=result.data
	        	    		var uid=data.id
	        	    		var username=data.userName
	        	    		$.cookie('username', username);
	        	    		$.cookie('uid', uid);
	        	    		window.location.href="index.html";
	        	    		
	        	    	}
	        	    	
	        	    	
	        	         
	        	    }	        		
	        		
	        	})
	         })
		})
		 
		
		</script>
=======
>>>>>>> b9f4a6f72ab076b6badbf38ebc0d10992f0e3038
		
	</head>
	<body>
		<!-- login -->
		<div class="top center">
			<div class="logo center">
				<a href="./index.html" target="_blank"><img src="./image/mistore_logo.png" alt=""></a>
			</div>
		</div>
<<<<<<< HEAD
		<form  method="post" class="form center">
=======
		<form  method="post" action="./login.php" class="form center">
>>>>>>> b9f4a6f72ab076b6badbf38ebc0d10992f0e3038
		<div class="login">
			<div class="login_center">
				<div class="login_top">
					<div class="left fl">会员登录</div>
					<div class="right fr">您还不是我们的会员？<a href="./register.html" target="_self">立即注册</a></div>
					<div class="clear"></div>
					<div class="xian center"></div>
				</div>
				<div class="login_main center">
<<<<<<< HEAD
					<div class="username">用户名:&nbsp;<input class="shurukuang" type="text" name="userName" placeholder="请输入你的用户名"/></div>
					<span id="username_msg">&nbsp;</span>
					<div class="username">密&nbsp;&nbsp;&nbsp;&nbsp;码:&nbsp;<input class="shurukuang" type="password" name="userPassword" placeholder="请输入你的密码"/></div>
	                <span id="userpassword_msg">&nbsp;</span>
		<!-- 			<div class="username">
						<div class="left fl">验证码:&nbsp;<input class="yanzhengma" type="text" name="username" placeholder="请输入验证码"/></div>
						<div class="right fl"><img src="./image/yanzhengma.jpg"></div>
						<div class="clear"></div>
					</div> -->
				</div>
				<div class="login_submit">
				    <!--  <button  id="but_1" class="submit">立即登录</button> -->
			<input  id="but_1" class="submit" type="button" name="submit" value="立即登录" >
=======
					<div class="username">用户名:&nbsp;<input class="shurukuang" type="text" name="username" placeholder="请输入你的用户名"/></div>
					<div class="username">密&nbsp;&nbsp;&nbsp;&nbsp;码:&nbsp;<input class="shurukuang" type="password" name="password" placeholder="请输入你的密码"/></div>
					<div class="username">
						<div class="left fl">验证码:&nbsp;<input class="yanzhengma" type="text" name="username" placeholder="请输入验证码"/></div>
						<div class="right fl"><img src="./image/yanzhengma.jpg"></div>
						<div class="clear"></div>
					</div>
				</div>
				<div class="login_submit">
					<input class="submit" type="submit" name="submit" value="立即登录" >
>>>>>>> b9f4a6f72ab076b6badbf38ebc0d10992f0e3038
				</div>
				
			</div>
		</div>
		</form>
		<footer>
			<div class="copyright">简体 | 繁体 | English | 常见问题</div>
			<div class="copyright">小米公司版权所有-京ICP备10046444-<img src="./image/ghs.png" alt="">京公网安备11010802020134号-京ICP证110507号</div>

		</footer>
	</body>
</html>